home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio / Patchmix / Source / Animator.h < prev    next >
Text File  |  1992-07-31  |  1KB  |  43 lines

  1. // Animator.h
  2. // By R. E. Crandall
  3. // You may freely copy, distribute and reuse the code in this example.
  4. // NeXT disclaims any warranty of any kind, expressed or implied, as to its
  5. // fitness for any particular use.
  6.  
  7. #import <objc/Object.h>
  8. #import <sys/time.h>
  9. #import <dpsclient/dpsclient.h>
  10.  
  11. @interface Animator:Object
  12. {
  13.     int            mask, ticking, passcounter;
  14.     DPSTimedEntry    teNum;
  15.     double        interval, synctime, adapteddt, desireddt, t0, howOften;
  16.     struct timeval    entrytime;
  17.     id            target;
  18.     SEL            action;
  19. }
  20.  
  21. - initChronon:(double)dt adaptation:(double)howoft target:(id)targ
  22.   action:(SEL)act autoStart:(int)start eventMask:(int)eMask; 
  23. - resetRealTime; 
  24. - (double)getSyncTime; 
  25. - (double)getDoubleEntryTime; 
  26. - (double)getDoubleRealTime; 
  27. - (double)getDouble; 
  28. - adapt; 
  29. - setBreakMask:(int)eventMask; 
  30. - (int)getBreakMask; 
  31. - (int)isTicking; 
  32. - (int)shouldBreak; 
  33. - setIncrement:(double)dt; 
  34. - (double)getIncrement; 
  35. - setAdaptation:(double)oft; 
  36. - setTarget:(id)targ; 
  37. - setAction:(SEL)aSelector; 
  38. - startEntry; 
  39. - stopEntry; 
  40. - free; 
  41.  
  42. @end
  43.